/*
 * Copyright (c) 2018-2999 九五云信息科技有限公司 All rights reserved.
 *
 * https://www.gz-yami.com/
 *
 */

package com.yami.shop.seckill.comment.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.yami.shop.seckill.comment.model.SeckillSku;
import org.apache.ibatis.annotations.Param;

import java.util.Date;

/**
 * 秒杀活动sku
 *
 * @author LGH
 * @date 2019-08-28 09:36:59
 */
public interface SeckillSkuMapper extends BaseMapper<SeckillSku> {

    int updateStocks(@Param("seckillSkuId") Long seckillSkuId, @Param("prodCount") Integer prodCount);

    void returnStocks(@Param("now") Date now);

    void returnStocksByOrderNumber(@Param("orderNumber") String orderNumber);
}
